import request from '@/utils/request'

// 查询优惠券记录列表
export function listCouponRecord(query) {
  return request({
    url: '/system/couponRecord/list',
    method: 'post',
    data: query
  })
}

// 查询优惠券记录详细
export function getCouponRecord(id) {
  return request({
    url: '/system/couponRecord/' + id,
    method: 'get'
  })
}

// 新增优惠券记录
export function addCouponRecord(data) {
  return request({
    url: '/system/couponRecord',
    method: 'post',
    data: data
  })
}

// 修改优惠券记录
export function updateCouponRecord(data) {
  return request({
    url: '/system/couponRecord',
    method: 'put',
    data: data
  })
}

// 删除优惠券记录
export function delCouponRecord(id) {
  return request({
    url: '/system/couponRecord/' + id,
    method: 'delete'
  })
}
